package mvc.model.inventory

import org.json.JSONObject


class PastDueWare(val goodsType: String, val barCode: String, val message: String) {

    companion object {

        fun pastDueWithJson(json: JSONObject): PastDueWare {

            val goodsType = json.getString("goodsType")
            val barCode = json.getString("barCode")
            return PastDueWare(goodsType, barCode, "past due")
        }

    }
}
